package patterns.mediator;

import java.util.Date;

/**
 * Created by lenovo on 2016/12/1 0001.
 * 聊天室，充当中介类
 */
public class ChatRoom {
    public static void showMsg(User user,String msg){
        System.out.println(new Date().toString() + " [" + user.getName() + "] : "+msg);
    }
}
